package cn.edu.ujn.service;

import cn.edu.ujn.dao.Vehicleinfo;
import cn.edu.ujn.dao.VehicleinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IVehicleinfoServiceImpl implements IVehicleinfoService{

    @Autowired
    private VehicleinfoMapper vehicleinfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer vehicleid) {
        return vehicleinfoMapper.deleteByPrimaryKey(vehicleid);
    }

    @Override
    public int insert(Vehicleinfo row) {
        return vehicleinfoMapper.insert(row);
    }

    @Override
    public int insertSelective(Vehicleinfo row) {
        return vehicleinfoMapper.insertSelective(row);
    }

    @Override
    public Vehicleinfo selectByPrimaryKey(Integer vehicleid) {
        return vehicleinfoMapper.selectByPrimaryKey(vehicleid);
    }

    @Override
    public int updateByPrimaryKeySelective(Vehicleinfo row) {
        return vehicleinfoMapper.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(Vehicleinfo row) {
        return vehicleinfoMapper.updateByPrimaryKey(row);
    }

    @Override
    public List<Vehicleinfo> selectAll(Vehicleinfo row) {
        return vehicleinfoMapper.selectAll(row);
    }
}
